package io.renren.modules.live.dao;

import io.renren.modules.live.dto.orderDto;
import io.renren.modules.live.entity.FanweOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.live.vo.orderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 订单表
 * 
 * @author shaoqi
 * @email sunlightcs@gmail.com
 * @date 2020-11-21 13:24:54
 */
@Mapper
public interface FanweOrderDao extends BaseMapper<FanweOrderEntity> {


    List<FanweOrderEntity> getUserIdDataOrderlist(@Param("userId") Integer userId,
                                                  @Param("time") String time,
                                                  @Param("page") Long page,
                                                  @Param("size") Long size);

    void save(FanweOrderEntity orderEntity);

    /**
     * 充值记录
     * @param orderVo
     * @return
     */
    orderDto selectOrderListOne(orderVo orderVo);

    /**
     * 充值记录count
     * @param orderVo
     * @return
     */
    Integer selectOrderListOneCount(orderVo orderVo);

    /**
     * 消费记录
     * @param orderVo
     * @return
     */
    orderDto selectOrderListTwo(orderVo orderVo);

    /**
     * 消费记录count
     * @param orderVo
     * @return
     */
    Integer selectOrderListTwoCount(orderVo orderVo);
}
